package io.lckgroup.modules.lck.dao;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.lckgroup.modules.lck.entity.ShopMerchantInfoEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 商家信息表
 *
 * @author srq
 * @email siruiqi@siruiqi.com
 * @date 2020-01-19 19:14:38
 */
@Mapper
public interface ShopMerchantInfoDao extends BaseMapper<ShopMerchantInfoEntity> {

    ShopMerchantInfoEntity selectByUserId(@Param("userId") Long userId);

    void BatchDeleteShopMerchantInfo(Long[] id);

    IPage<ShopMerchantInfoEntity> getShopMerchantByCondition(Page page, @Param("condition") String condition,@Param("longitude") String longitude,@Param("latitude") String latitude);

    List<Map<String,String>> selectMerchantInfoByMonth(String gmtCreate,String gmtCreates);

    IPage<ShopMerchantInfoEntity> getShopMerchantByConditionAndSearch(Page page, @Param("condition") String condition,@Param("longitude") String longitude,@Param("latitude") String latitude,@Param("search") String search);
}
